<?php
	$con = mysql_connect("localhost","root","");
	if (!$con){
		die('Could not connect: ' . mysql_error());
	}

	mysql_select_db("igdb", $con);

	$result = mysql_query("SELECT * FROM game_category LIMIT 0,2");

	echo "<table border='1' align='center'>
	<tr>
		<th>id</th>
		<th>category</th>
	</tr>";

	while($row = mysql_fetch_array($result)){
		echo "<tr>";
		echo "<td>" . $row["category_id"] . "</td>";
		echo "<td>" . $row["category"] . "</td>";
		echo "</tr>";
	}
	echo "</table>";

	mysql_close($con);
?>